package com.aier.user.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import com.aier.common.common.Constant;

/**
 * Home entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "follow_group", catalog = "abc")
public class FollowGroup implements java.io.Serializable {

    // 标识
    private Long fgid;
    // 用户id
    private Long uid;
    // 分组名称
    private String name;
    // 创建时间
    private Timestamp cdate;

    // 每个分组的人数
    private int count;

    /** default constructor */
    public FollowGroup() {
    }

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "fgid", unique = true, nullable = false)
    public Long getFgid() {
        return this.fgid;
    }

    public void setFgid(Long fgid) {
        this.fgid = fgid;
    }
    @Column(name = "uid", nullable = false, length = Constant.num_20)
    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @Column(name = "cdate")
    public Timestamp getCdate() {
        return cdate;
    }

    public void setCdate(Timestamp cdate) {
        this.cdate = cdate;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }


}